﻿namespace Yipusoft.Account.BLL
{
    using System;
    using System.Collections.Generic;
    using Yipusoft.Account.DAL;
    using Yipusoft.Account.Model;

    public class Department
    {
        public static bool Delete(string DepartmentID)
        {
            Yipusoft.Account.DAL.Department department = new Yipusoft.Account.DAL.Department();
            return department.Delete(DepartmentID);
        }

        public static bool Exsits(string DepartmentID)
        {
            Yipusoft.Account.DAL.Department department = new Yipusoft.Account.DAL.Department();
            return department.Exsits(DepartmentID);
        }

        public static DepartmentInfo GetDepartment(string DepartmentID)
        {
            Yipusoft.Account.DAL.Department department = new Yipusoft.Account.DAL.Department();
            return department.GetDepartment(DepartmentID);
        }

        public static List<DepartmentInfo> GetList(string StrWhere)
        {
            Yipusoft.Account.DAL.Department department = new Yipusoft.Account.DAL.Department();
            return department.GetList(StrWhere);
        }

        public static DepartmentInfo GetOADepartment(string departmentID)
        {
            Yipusoft.Account.DAL.Department department = new Yipusoft.Account.DAL.Department();
            return department.GetOADepartment(departmentID);
        }

        public static bool Insert(DepartmentInfo Department)
        {
            Yipusoft.Account.DAL.Department department = new Yipusoft.Account.DAL.Department();
            return department.Insert(Department);
        }

        public static bool Update(DepartmentInfo Department)
        {
            Yipusoft.Account.DAL.Department department = new Yipusoft.Account.DAL.Department();
            return department.Update(Department);
        }
    }
}

